package com.school.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
 * ClassName: ProjectConfig
 * Package: com.school.config
 * Description:
 * @Author laohe
 * @Create 2025-07-09 9:37
 * @Version 1.0
 */
@Component
@ConfigurationProperties(prefix = "project")
public class ProjectConfig {
    private static String name;
    private static   String fileUploadPath;
    private static   String serverUrl;
    private static Integer orderUnpaidOverTime;

    public ProjectConfig() {
    }

    public static String getName() {
        return name;
    }
    public void setName(String name) {
        ProjectConfig.name = name;
    }

    public static String getFileUploadPath() {
        return fileUploadPath;
    }

    public void setFileUploadPath(String fileUploadPath) {
        ProjectConfig.fileUploadPath = fileUploadPath;
    }

    public static String getServerUrl() {
        return serverUrl;
    }

    public void setServerUrl(String serverUrl) {
        ProjectConfig.serverUrl = serverUrl;
    }

    public static Integer getOrderUnpaidOverTime() {
        return orderUnpaidOverTime;
    }

    public void setOrderUnpaidOverTime(Integer orderUnpaidOverTime) {
        ProjectConfig.orderUnpaidOverTime = orderUnpaidOverTime;
    }
    @Override
    public String toString() {
        return "ProjectConfig{" +
                "fileUploadPath='" + fileUploadPath + '\'' +
                ", name='" + name + '\'' +
                ", serverUrl='" + serverUrl + '\'' +
                ", orderUnpaidOverTime=" + orderUnpaidOverTime +
                '}';
    }
}